package com.hzqy.web.ac.industry;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hzqy.service.industry.IndustryThresholdServiceBean;
import com.hzqy.web.vo.industry.threshold.IndustryThresholdVideo;
/**
 * 视频阀值管理
 * 1.基础CRUD
 * 2.阀值清空
 * @author ygr20
 *
 */
@Controller
@RequestMapping("/industry/threshold")
public class IndustryThresholdAction {
	@Resource
	private IndustryThresholdServiceBean industryThresholdServiceBean;
	@RequestMapping("/selectThresholdList")
	@ResponseBody
	public Object selectThresholdList(IndustryThresholdVideo industryThresholdVideo){
		Map<String,Object> contentListMap = new HashMap<String, Object>();
		return industryThresholdServiceBean.selectThresholdList(industryThresholdVideo);
	}
	@RequestMapping("/selectThresholdInfo")
	@ResponseBody
	public Object selectThresholdInfo(int f_itv_id){
		return industryThresholdServiceBean.selectThresholdInfo(f_itv_id);
	}
	@RequestMapping("/addThreshold")
	@ResponseBody
	public Object addThreshold(IndustryThresholdVideo industryThresholdVideo){
		Map<String, Object> resultMap= new HashMap<>();
		resultMap=industryThresholdServiceBean.addThreshold(industryThresholdVideo);
		return resultMap;
	}
	@RequestMapping("/updateThreshold")
	@ResponseBody
	public Object updateThreshold(IndustryThresholdVideo industryThresholdVideo){
		Map<String, Object> resultMap= new HashMap<>();
		resultMap=industryThresholdServiceBean.updateThreshold(industryThresholdVideo);
		return resultMap;
	}
	@RequestMapping("/deleteThreshold")
	@ResponseBody
	public Object deleteThreshold(int f_itv_id){
		Map<String, Object> resultMap= new HashMap<>();
		resultMap=industryThresholdServiceBean.deleteThreshold(f_itv_id);
		return resultMap;
	}
	@RequestMapping("/clearThreshold")
	@ResponseBody
	public Object clearThreshold(){
		Map<String, Object> resultMap= new HashMap<>();
		resultMap=industryThresholdServiceBean.clearThreshold();
		return resultMap;
	}
}
